#include <iostream>

using namespace  std;
namespace ns1 {
	void func(void) {
		//std::cout << "ns1::func" << std::endl;
		cout << "ns1::func" << endl;
	}
}
namespace ns2 {
	void func(void) {
		//std::cout << "ns2::func" << std::endl;
		cout << "ns2::func" << endl;
	}
}
int main (void)
{
	using ns1::func; //名字空间声明
	func(); //ns1::func
	//using ns2::func;
	using namespace ns2;
	func(); //ns1::func 
	ns2::func();
	return 0;
}
